{include file="index/header" /} 
 
  <p>课程章节：</p>
   
<table class="table table-bordered table-hover ">
<thead>
<tr  ><th > ID</th><th > 课程标题</th><th > 课程序号</th><th >价格  </th><th >设置  </th>
</tr>
</thead>

<tbody>
{volist name='show' id='user'}
  
    <tr  ><th> {$user.id} </th><td> <a href="__ROOT__/admin/index/view/id/{$user.id} ">{$user.title|mb_substr=0,50,'utf-8' }</a></td><td> {$user.sort}
    </td><td>{$user.price} </td><td>   <a href="__ROOT__/admin/index/update/id/{$user.id}"  id="btn" class="btn btn-primary" "  >编辑</a>    <a href="#"  id="btn" class="btn btn-danger" data-toggle="modal" data-target="#myModal{$user.id}"  >删除 </a>  </td> </tr>

<!-- Modal -->
<div class="modal fade" id="myModal{$user.id}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">提示</h4>
      </div>
      <div class="modal-body">
        删除确认...{$user.title|mb_substr=0,20,'utf-8' }
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
       <!--  <button type="button" class="btn btn-primary">确定删除</button> -->
       <a href="__ROOT__/admin/index/delete/id/{$user.id}"  id="btn" class="btn btn-danger"    >确定删除 </a>
      </div>
    </div>
  </div>
</div>

{/volist}
</tbody>
</table>
   



{$show->render()}
 
 

 
 {include file="index/footer" /}